package com.zzgc;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan("com.zzgc.common.dao")
@EnableTransactionManagement // Mybatis 事务管理
@EnableScheduling //开启定时任务

// tomcat部署服务器报404  需要继承SpringBootServletInitializer
public class VisionMonitorApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(VisionMonitorApplication.class, args);
    }

}
